// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';
import { SysWechatUser,
    DeleteWechatUserInput,
    WechatUserInput, 
 } from '../models';
// 定义 API 路径枚举
enum Api {
    SysWechatUserAdd = '/sysWechatUser/add',
    SysWechatUserDelete = '/sysWechatUser/delete',
    SysWechatUserPage = '/sysWechatUser/page',
    SysWechatUserUpdate = '/sysWechatUser/update',
}

// 定义 API 方法
export const apiSysWechatUserAddPost = (body?: SysWechatUser) =>
    request({
        url: Api.SysWechatUserAdd,
        method: 'post',
        data: body,
    });

export const apiSysWechatUserDeletePost = (body?: DeleteWechatUserInput) =>
    request({
        url: Api.SysWechatUserDelete,
        method: 'post',
        data: body,
    });

export const apiSysWechatUserPagePost = (body?: WechatUserInput) =>
    request({
        url: Api.SysWechatUserPage,
        method: 'post',
        data: body,
    });

export const apiSysWechatUserUpdatePost = (body?: SysWechatUser) =>
    request({
        url: Api.SysWechatUserUpdate,
        method: 'post',
        data: body,
    });